package demo02;

public class Movie {
    //无参数构造器（实体类）
    public Movie() {
    }
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    private int id;
    private int score;
//有参数构造器，来初始化
    public Movie(String name, int id, int score, String actor, String info) {
        this.name = name;
        this.id = id;
        this.score = score;
        this.actor = actor;
        this.info = info;
    }

    private String actor;
    private String info;
}
